* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --container-width: 1200px;
    --spacing-unit: 8px;
    --border-radius: 16px;
    --primary-color: #333;
    --secondary-color: #666;
    --background-color: #f5f5f5;
    --card-background: #fff;
    --accent-color: #1296db;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    font-size: 1rem;
    line-height: 1.5;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 2.5);
}

/* 轮播图样式 */
.banner {
    width: 100%;
    height: 40vw;
    min-height: 120px;
    max-height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: calc(var(--spacing-unit) * 4);
    position: relative;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swiper-pagination {
    position: absolute;
    bottom: 20px !important;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

/* 导航网格样式 */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 3);
    background: var(--card-background);
    border-radius: var(--border-radius);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--spacing-unit) * 2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.grid-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    transition: transform 0.3s ease;
    object-fit: cover;
    border-radius: 12px;
}

.grid-item:hover img {
    transform: scale(1.1);
}

.grid-item span {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* 内容列表样式 */
.content-list {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 3);
}

.list-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--primary-color);
}

.list-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: calc(var(--spacing-unit) * 3);
    padding: calc(var(--spacing-unit) * 3) 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
}

.list-item:hover {
    background-color: #f9f9f9;
    transform: translateX(5px);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item img {
    width: 100%;
    height: 150px;
    border-radius: calc(var(--border-radius) / 2);
    object-fit: cover;
}

.item-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.item-desc {
    font-size: 0.875rem;
    color: var(--secondary-color);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    :root {
        --container-width: 100%;
    }
    
    html {
        font-size: 15px;
    }
}

@media screen and (max-width: 992px) {
    .nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-item img {
        max-width: 160px;
    }
}

@media screen and (max-width: 900px) {
    html {
        font-size: 14px;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: calc(var(--spacing-unit) * 1.5);
        padding: calc(var(--spacing-unit) * 2);
    }

    .grid-item img {
        max-width: 120px;
    }

    .list-item {
        grid-template-columns: 1fr;
    }

    .list-item img {
        height: 200px;
    }
}

@media screen and (max-width: 600px) {
    html {
        font-size: 12px;
    }
    
    .container {
        padding: 0.5rem;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .job-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media screen and (max-width: 576px) {
    .grid-item img {
        max-width: 100px;
    }
}

@media screen and (max-width: 360px) {
    .nav-grid {
        grid-template-columns: 1fr;
    }

    .grid-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: calc(var(--spacing-unit) * 1.5);
    }

    .grid-item img {
        max-width: 80px;
        margin-bottom: 0;
    }
}

/*底部样式*/
.footer{
    width: 100%;
    height: 12vw;
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: space-around;
    background: yellow;

    div {
        text-align: center;
        width: 15%;
        height: 100%;
        padding-top: 1vw;

        p {
            padding-top: 1vw;
            font-size: 4vw;
        }
    }
    left: 0;
    bottom: 0;
}
